#!/user/bin/env python3
# -*- coding: utf-8 -*-
"""
--------------------------------------
    Author:     JiChao_Song
    Date  :     2022/1/20 21:28
    Desc  :
--------------------------------------
"""


class CaseImportRealData:
    """原始导入数据"""

    def __init__(self):
        self.rowId = 0
        self.caseTitle = None
        self.caseDesc = None
        self.caseModuleName = None
        self.casePreCondition = None
        self.caseStepDesc = None
        self.caseStepResult = None
        self.caseStatus = None
        self.caseImportance = None
        self.caseVindicatorName = None
        self.remark = None
        self.failureMsg = []


class CaseImportDto:
    """case解析之后结构体"""

    def __init__(self):
        self.rowId = 0
        self.caseTitle = None
        self.casePreCondition = None
        self.caseSteps = []
        self.caseStatus = None
        self.caseImportance = None
        self.caseVindicatorName = None
        self.caseVindicatorId = None
        self.remark = None
        self.caseModuleId = None
        self.failureMsg = []


class CaseImportListDto:
    """导出表结构体"""
    def __init__(self):
        self.array = []
        self.total = 0
        self.failureCount = 0
        self.successCount = 0
        self.failureArray = []


class CaseBaseCreateDto:
    """caseBase数据对象"""

    def __init__(self):
        self.caseTitle = None
        self.caseModuleId = None
        self.casePreCondition = None
        self.caseSteps = []
        self.caseStepsType = 101
        self.caseStatus = None
        self.caseImportance = None
        self.caseVindicatorName = None
        self.caseVindicatorId = None
        self.project = None
        self.creatorId = None
        self.creatorName = None
        self.remark = None